//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "YejiModel.h"

@implementation YejiModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [YejiResponse class];
    }
    return self ;
}

- (void)getMyYejiDataWith:(NSString *)date
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:date forKey:@"acceptMonth"];
    [self postPath:@"xqn/app/insuranceCangbaotuUserCommission/myCommission" parameters:parameters];
}

- (void)getTeamDataWith:(NSString *)date
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:date forKey:@"acceptMonth"];
    [self postPath:@"xqn/app/insuranceCangbaotuUserCommission/teamCommission" parameters:parameters];
}


- (void)getMyCommissionDataWith:(NSString *)date
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:date forKey:@"acceptMonth"];
    [self postPath:@"xqn/app/insuranceCangbaotuUserCommission/myCommission/examine" parameters:parameters];
}
@end
